package com.gym.myshop.dao;

import com.gym.myshop.entity.User;

import java.util.List;

/**
 * @author ming
 * 2021/11/3
 * description:
 */
public interface UserDao {
    /**
     *@author:ming
     *@Date: 2021/11/4
     *@description:查user全部数据
     */
    List<User> getAllUser();

    //用户名查找判断
    User getUserByName(String username);

    //注册信息添加
    int addUser(User u);

    //用户不存在，无法激活
    User getUserByEmailAndCode(String e, String c);

    //用户已激活
    int updateUserStatus(int activate, int uid);
}
